package com.ewanghuiju.app.base.contract.login;

import com.ewanghuiju.app.base.BasePresenter;
import com.ewanghuiju.app.base.BaseView;
import com.ewanghuiju.app.model.bean.request.PhoneRegistbindRequestBean;
import com.ewanghuiju.app.model.bean.response.PhoneRegistbindResponBean;

/**
 * @author sj  qq:751943509
 * @class 修改信息  用到手机验证码页面
 * @time 2020/2/14
 */
public interface PhoneRegistbindContract {

    interface View extends BaseView {
        void showRegist(PhoneRegistbindResponBean bean);

        void showRegistResponseMsg(int code, String message);

        void showBind(PhoneRegistbindResponBean bean);

        void showBindResponseMsg(int code, String message);

        void showCodeText(String text);

        void showCodeComplete();

        void showCodeOn();

        void showCodeResponseMsg(int code, String message);
    }

    interface Presenter extends BasePresenter<View> {
        //手机号去注册
        void phoneRegist(PhoneRegistbindRequestBean phoneRegistbindRequestBean);

        //忘记密码
        void Editpwd(PhoneRegistbindRequestBean phoneRegistbindRequestBean);

        //手机号去绑定
        void phoneBind(PhoneRegistbindRequestBean phoneRegistbindRequestBean);

        void getCode(String mobile);

        //注册时的验证码登录
        void getCodeWithReg(String mobile, String type);

        void startInterval();

        void stopInterval();
    }

}
